<?php

// No direct access
 
defined('_JEXEC') or die('Restricted access'); 

if($this->c_lang == 'eu-ES'){
	print("<h1>".$this->rsc->number_title.$this->lang->name_eu."</h1>");
}
else
	print("<h1>".$this->rsc->number_title.$this->lang->name_es."</h1>");
?>
<br/>
<br/>
<i><?php echo $this->rsc->number_text; ?></i>
<br/>
<br/>
<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak&task=songs">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
<form name="editSongLang" method="post" enctype="multipart/form-data" action="index.php?option=com_hizkuntzak">
<input type="hidden" name="task" value="addSongLang"/>
<input type="hidden" name="hlang" value="<?php echo($this->lang->iso_code); ?>" />
<input type="hidden" name="id" value="<?php echo($this->song->id); ?>" />
<table>
	<tr>
		<td><?php echo $this->rsc->lang_code; ?>: </td>
		<td>
			<?php if($this->lang->iso_code != null){
				print("<input type='text' disabled='disabled' id='lang_code' name='lang_code' value='".$this->lang->iso_code."' size='8'/>");
			}
			else{
				print("<input type='text' class='validate[required]' id='lang_code' name='lang_code' size='8'/>");
			}?>
		</td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->songs_song_eu; ?>: </td>
		<td><input type="text" class='validate[required]' id="name_eu" name="name_eu" value="<?php echo($this->song->name_eu);?>"/></td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->songs_song_es; ?>: </td>
		<td><input type="text" class='validate[required]' id="name_es" name="name_es" value="<?php echo($this->song->name_es);?>"/></td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->songs_spelling; ?>: </td>
		<td><input type="text" class='validate[required]' id="spelling" name="spelling" value="<?php echo($this->song->spelling);?>"/></td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->songs_pronoun; ?>: </td>
		<td><input type="text" class='validate[required]' id="pronoun" name="pronoun" value="<?php echo($this->song->pronoun);?>"/></td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->songs_song;?>: </td>
		<td>
			<input type='file' name='song<?php echo($this->song->id);?>-a' value='<?php echo($this->song->audioPath);?>'/>
		<?php 
			if($this->song->audioPath != "" || $this->song->audioPath != null){
			echo("<i>".$this->rsc->video_already."</i>");
		}
		?>
		<input type='hidden' name='song<?php echo($this->song->id);?>-ao' value='<?php echo($this->song->audioPath);?>'/>
		</td>
	</tr>
	<tr>
		<td><?php echo $this->rsc->active; ?>: </td>
		<td>
			<?php 
				if($this->song->active){
					print("<input type='checkbox' checked='checked' name='active'/>");
				}
				else{
					print("<input type='checkbox' name='active'/>");
				}
			?>
		</td>
	</tr>
</table>
<br/>
<br/>
<p align="right"><a href="index.php?option=com_hizkuntzak&task=songs">&laquo; <?php print($this->rsc->volver)?></a></p>
<br/>
<input type="submit" value="<?php echo $this->rsc->save_changes; ?>" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false">
</form>
